<template>
  <div style="height: 6vh;background-color: white;padding: 10px 20px;">
    <span style="line-height: 60px;font-size: 20px;">车辆维修</span>
    <el-button type="primary" style="float: right;margin-top: 13px;" @click="dialogVisible=true">录入维修车辆</el-button>
  </div>
  <el-dialog style="width: 1000px;padding: 40px;" v-model="dialogVisible">
    <el-form label-width="80px" label-position="top">
      <el-row :gutter="30">
        <el-col :span="12">
          <el-form-item label="维修人">
            <el-input disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="维修车辆">
            <el-select placeholder="请选择车牌号">
              <el-option label="" value=""></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="30">
        <el-col :span="12">
          <el-form-item label="维修项目">
            <el-select placeholder="请选择">
              <el-option label="" value=""></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="维修地点">
            <el-select placeholder="请选择">
              <el-option label="" value=""></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="30">
        <el-col :span="12">
          <el-form-item label="维修材料">
            <el-select placeholder="请选择">
              <el-option label="" value=""></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="维修费用">
            <el-input placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="30">
        <el-col :span="12">
          <el-form-item label="维修时间">
            <el-date-picker type="date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="维修状态">
            <el-radio-group>
              <el-radio border label="维修中" value="1"></el-radio>
              <el-radio border label="已完成" value="1"></el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <template #footer>
      <el-button>取消</el-button>
      <el-button type="primary">保存</el-button>
    </template>
  </el-dialog>
  <el-card style="margin: 20px;height: 70px;">
    <el-form :inline="true">
      <el-form-item label="维修车辆" style="width: 270px;">
        <el-input placeholder="请输入车牌号"></el-input>
      </el-form-item>
      <el-form-item label="送修人员" style="width: 270px;">
        <el-input placeholder="请输入送修人姓名"></el-input>
      </el-form-item>
      <el-form-item label="维修状态" style="width: 290px;">
        <el-select placeholder="请选择用户状态">
          <el-option label="维修中" value="1"></el-option>
          <el-option label="已完成" value="0"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button>重置</el-button>
        <el-button type="primary">查询</el-button>
      </el-form-item>
    </el-form>
  </el-card>
  <el-card style="margin: 20px;">
    <el-table>
      <el-table-column label="编号" type="index" width="80" align="center"></el-table-column>
      <el-table-column label="维修车辆" prop="" align="center"></el-table-column>
      <el-table-column label="维修项目" prop="" align="center"></el-table-column>
      <el-table-column label="送修人员" prop="" align="center"></el-table-column>
      <el-table-column label="维修地点" prop="" align="center"></el-table-column>
      <el-table-column label="维修时间" prop="" align="center"></el-table-column>
      <el-table-column label="维修费用" prop="" align="center"></el-table-column>
      <el-table-column label="维修材料" prop="" align="center"></el-table-column>
      <el-table-column label="维修状态" prop="" align="center">
        <template #default="scope">
          <el-switch active-value="1" inactive-value="0"></el-switch>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center">
        <template #default="scope">
          <el-button type="primary">编辑</el-button>
          <el-button type="primary">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </el-card>
</template>
<script setup>
import {ref} from "vue";

const dialogVisible=ref(false);
</script>
<style scoped>
</style>